package com.zmn.plat.services.impl.channel;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.channel.ChannelDepositLog;
import com.zmn.plat.persistence.interfaces.channel.ChannelDepositLogDAO;
import com.zmn.plat.services.interfaces.channel.ChannelDepositLogService;

/**
 * 渠道押金操作日志
 *
 * @author xiangjunming
 * @since 2019 /08/19 12:14:03
 */
@Service
public class ChannelDepositLogServiceImpl implements ChannelDepositLogService {

    @Autowired
    private ChannelDepositLogDAO channelDepositLogDAO;

    @Override
    public ChannelDepositLog findByKey(Integer id) {
        return channelDepositLogDAO.findByKey(id);
    }

    @Override
    public List<ChannelDepositLog> lisyByChannelId(Integer channelId) {
        return channelDepositLogDAO.lisyByChannelId(channelId);
    }

    @Override
    public int updateByKey(ChannelDepositLog record) {
        return channelDepositLogDAO.updateByKey(record);
    }

    @Override
    public int insert(ChannelDepositLog record) {
        return channelDepositLogDAO.insert(record);
    }

    @Override
    public int deleteByKey(Integer id) {
        return channelDepositLogDAO.deleteByKey(id);
    }
}